{include file="header.html"}
<script type="text/javascript">
$(function(){
    $('#add_time_from').datepicker({dateFormat: 'yy-mm-dd'});
    $('#add_time_to').datepicker({dateFormat: 'yy-mm-dd'});
});
</script>
<div id="rightTop">
  <p>{$lang.admin_log}</p>
  <ul class="subnav">
    <li><span>{$lang.manage}</span></li>
  </ul>
</div>

<div class="mrightTop">
  <div class="fontl">
        <form method="get">
             <div class="left">
                <input type="hidden" name="app" value="adminlog" />
                <input type="hidden" name="act" value="index" />
                {$lang.admin}:   
                <input class="queryInput" type="text" name="search_name" value="{$query.search_name|escape}" />            
                {$lang.add_time_from}:<input class="queryInput2" type="text" value="{$query.add_time_from}" id="add_time_from" name="add_time_from" class="pick_date" />
                {$lang.add_time_to}:<input class="queryInput2" type="text" value="{$query.add_time_to}" id="add_time_to" name="add_time_to" class="pick_date" />
                
                <input type="submit" class="formbtn" value="{$lang.query}" />
            </div>
            <!--{if $filtered}-->
            <a class="left formbtn1" href="index.php?app=adminlog">{$lang.cancel_query}</a>
            <!--{/if}-->
        </form>
    </div>
  <div class="fontr">{include file=page.top.html}</div>
</div>
<div class="tdare">
  <table width="100%" cellspacing="0" class="dataTable">
    <!--{if $adminlog}-->
    <tr class="tatr1">
      <td width="70" class="firstCell"><input type="checkbox" class="checkall" /> {$lang.log_id}</td>
      <td><span ectype="order_by" fieldname="user_name">{$lang.user_name}</span></td>
      <td><span ectype="order_by" fieldname="log_time">{$lang.log_time}</span></td>
      <td><span ectype="order_by" fieldname="ip_address">{$lang.ip_address}</span></td>
      <td>{$lang.log_info}</td>
      <td class="handler">{$lang.handler}</td>
    </tr>
    <!--{/if}-->
    <!--{foreach from=$adminlog item=admin}-->
    <tr class="tatr2">
      <td class="firstCell"><input type="checkbox" class="checkitem" value="{$admin.log_id}" />{$admin.log_id}</td>
      <td>{$admin.user_name|escape}</td>
      <td>{$admin.log_time|date:complete}</td>
      <td>{$admin.ip_address|escape}</td>
      <td>{$admin.log_info|escape}</td>
      <td class="handler">
      <a href="javascript:drop_confirm('{$lang.drop_confirm}', 'index.php?app=adminlog&amp;act=drop&amp;id={$admin.log_id}');">{$lang.drop}</a>
      </td>
    </tr>
    <!--{foreachelse}-->
    <tr class="no_data">
      <td colspan="10">{$lang.no_data}</td>
    </tr>
    <!--{/foreach}-->
  </table>
  <!--{if $adminlog}-->
  <div id="dataFuncs">
    <div id="batchAction" class="left paddingT15"> &nbsp;&nbsp;
      <input class="formbtn batchButton" type="button" value="{$lang.drop}" name="id" uri="index.php?app=adminlog&act=drop" presubmit="confirm('{$lang.drop_confirm}');" />
    </div>
    <div class="pageLinks">{include file=page.bottom.html}</div>
    <div class="clear"></div>
  </div>
  <!--{/if}-->
</div>
{include file="footer.html"}